<%@page import="com.shsh.safemanage.model.JobTitle"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.TitlePostManageGroupDao"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.User"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<%
{
TitlePostManageGroupDao titlePostManageGroupDao = DaoCreator.createTitlePostManageGroupDao();
User loginUser = (User) session.getAttribute(Constants.SESSION_USER);
%>
<div class="nav1"><a href="javascript:" class="h">菜单</a></div>
<div class="nav2">
	<%
	if (loginUser == null) {
	%>
	<a href="javascript:" onclick="loadPageSection('/safe_manage/login.jsp', 'mainContentDiv')">登 录</a>
	<a href="javascript:" onclick="loadPageSection('/safe_manage/register.jsp', 'mainContentDiv')">注 册</a>
	<%
	}
	%>
	<%
	if (loginUser != null) {
	%>
	<a href="javascript:" onclick="loadPageSection('/safe_manage/write_problem.jsp', 'mainContentDiv')">问题填报</a>
	<a href="javascript:" onclick="loadPageSection('/safe_manage/problem_browse.jsp', 'mainContentDiv')">问题浏览</a>
	<%
	JobTitle title = titlePostManageGroupDao.getTitleByID(loginUser.getJobTitleID());
	if (title.getTitleLevel() >= Constants.TITLE_LEVEL_ZUYUAN) {
	%>
	<a href="javascript:" onclick="loadPageSection('/safe_manage/problems_tobe_processed.jsp', 'mainContentDiv')">问题处理</a>
	<%
	}
	%>
	<%
	}
	%>
</div>
<%
}
%>